package cc.magicjson.mall.order.infrastructure.persistence;


import cc.magicjson.mall.order.domain.model.Order;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.Optional;

/**
 * JpaOrderRepository 仓储实现
 * 实现领域层定义的 OrderRepository 接口
 */
@Repository
public interface JpaOrderRepository extends JpaRepository<Order, String> {

	Order save(Order entity);

	Optional<Order> findById(String orderId);


}